import request from '@/utils/request'

// 物料冻结列表
export function getListAPI(params) {
  return request({
    url: '/storage/materialFreezing/list',
    method: 'GET',
    params
  })
}

// 物料冻结新增列表查询
export function getStockInfoListAPI(params) {
  return request({
    url: '/storage/materialFreezing/getStockInfoList',
    method: 'GET',
    params
  })
}

// 冻结
export function addFreezAPI(data) {
  return request({
    url: '/storage/materialFreezing/addFreezing',
    method: 'POST',
    data
  })
}

// 解冻数据回显
export function materialFreezAPI(data) {
  return request({
    url: '/storage/materialFreezing/view/' + data,
    method: 'GET'
  })
}

// 解冻
export function updateFreezAPI(data) {
  return request({
    url: '/storage/materialFreezing/updateFreezing',
    method: 'POST',
    data
  })
}

// 品质处理
export function updateGradeFreezAPI(data) {
  return request({
    url: '/storage/materialFreezing/updateGradeFreezing',
    method: 'POST',
    data
  })
}

// 外面仓储信息下拉
export function GetCombinationWarehouseAPI() {
  return request({
    url: '/storage/warehouse/list',
    method: 'GET'
  })
}

// 仓储信息下拉
export function GetwarehouseAPI() {
  return request({
    url: '/storage/warehouse/list',
    method: 'GET'
  })
}
